package com.itheima.stock.common.constance;

import java.math.BigDecimal;

public class JsonConstance {
    /**
     * 阿里接口返回的大盘数据
     */
    public static String dapanData = "{\n" +
            "\t\"status\": 0,\n" +
            "\t\"msg\": \"ok\",\n" +
            "\t\"result\": [{\n" +
            "\t\t\"name\": \"上证指数\",\n" +
            "\t\t\"code\": \"000001\",\n" +
            "\t\t\"price\": \"3467.19\",\n" +
            "\t\t\"openningprice\": \"3451.63\",\n" +
            "\t\t\"lastclosingprice\": 3468.04,\n" +
            "\t\t\"trendnum\": 241,\n" +
            "\t\t\"updatetime\": 1645154115,\n" +
            "\t\t\"trend\": [\"2022-02-18 09:30,3451.63,3039984,2997038768.00,3453.084\", \"2022-02-18 09:31,3450.23,7849363,8546731520.00,3446.424\", \"2022-02-18 09:32,3454.14,4282187,4969907200.00,3452.832\", \"2022-02-18 09:33,3455.87,4025004,4677659904.00,3455.900\", \"2022-02-18 09:34,3457.36,3681768,4339312896.00,3457.136\", \"2022-02-18 09:35,3455.20,3146576,3781170416.00,3455.619\", \"2022-02-18 09:36,3455.86,3212916,3793580560.00,3454.551\", \"2022-02-18 09:37,3459.31,2748866,3233755312.00,3456.626\", \"2022-02-18 09:38,3462.22,2884413,3160142208.00,3460.218\", \"2022-02-18 09:39,3458.31,2797200,3074661360.00,3457.181\", \"2022-02-18 09:40,3457.66,2947204,3012396512.00,3454.876\", \"2022-02-18 09:41,3457.51,3272790,3403082672.00,3454.270\", \"2022-02-18 09:42,3455.71,2547521,2895500080.00,3451.315\", \"2022-02-18 09:43,3454.60,2779961,2992603648.00,3447.685\", \"2022-02-18 09:44,3454.62,2426529,2719733936.00,3447.180\", \"2022-02-18 09:45,3454.26,2447884,2775723888.00,3447.388\", \"2022-02-18 09:46,3455.12,2445661,3021332080.00,3447.743\", \"2022-02-18 09:47,3454.92,2084560,2331693872.00,3449.184\", \"2022-02-18 09:48,3459.23,2409839,2578050944.00,3453.602\", \"2022-02-18 09:49,3459.74,2559580,2517253136.00,3455.922\", \"2022-02-18 09:50,3460.30,2159831,2095545792.00,3457.101\", \"2022-02-18 09:51,3458.89,2255697,2422169440.00,3457.402\", \"2022-02-18 09:52,3458.99,2361186,2385767024.00,3458.192\", \"2022-02-18 09:53,3461.50,2338491,2211449776.00,3459.840\", \"2022-02-18 09:54,3464.54,2276126,2370139216.00,3463.036\", \"2022-02-18 09:55,3467.67,2191680,2254651936.00,3465.438\", \"2022-02-18 09:56,3471.11,2427429,2398654896.00,3468.404\", \"2022-02-18 09:57,3470.03,2020292,2180466880.00,3467.786\", \"2022-02-18 09:58,3469.39,1704720,1818732816.00,3467.048\", \"2022-02-18 09:59,3468.75,1737592,1851257232.00,3466.264\", \"2022-02-18 10:00,3468.21,1610066,1867974784.00,3465.084\", \"2022-02-18 10:01,3466.57,2050052,2354688640.00,3462.213\", \"2022-02-18 10:02,3468.82,2126309,2194101168.00,3463.520\", \"2022-02-18 10:03,3467.62,1629988,1792976464.00,3462.730\", \"2022-02-18 10:04,3467.65,1371337,1526839184.00,3462.373\", \"2022-02-18 10:05,3470.37,1429665,1759660272.00,3463.902\", \"2022-02-18 10:06,3470.72,1538356,1677455360.00,3465.574\", \"2022-02-18 10:07,3470.25,1228037,1409126192.00,3465.636\", \"2022-02-18 10:08,3469.88,1253879,1434434912.00,3465.548\", \"2022-02-18 10:09,3469.32,1132200,1317043600.00,3465.748\", \"2022-02-18 10:10,3469.27,1123684,1422113456.00,3465.456\", \"2022-02-18 10:11,3471.58,1517516,1664845280.00,3467.732\", \"2022-02-18 10:12,3471.93,1727087,1996064752.00,3469.184\", \"2022-02-18 10:13,3473.25,1306168,1395570896.00,3469.190\", \"2022-02-18 10:14,3472.52,1350499,1418165776.00,3468.986\", \"2022-02-18 10:15,3470.72,1180745,1399370816.00,3467.957\", \"2022-02-18 10:16,3471.98,1081896,1257025200.00,3468.302\", \"2022-02-18 10:17,3472.15,1108455,1206463872.00,3468.810\", \"2022-02-18 10:18,3472.86,1194043,1312444816.00,3469.628\", \"2022-02-18 10:19,3472.01,1191494,1418397520.00,3469.272\", \"2022-02-18 10:20,3470.68,1323090,1538292784.00,3467.823\", \"2022-02-18 10:21,3469.76,1211147,1386162752.00,3466.891\", \"2022-02-18 10:22,3469.34,1261998,1394768992.00,3466.757\", \"2022-02-18 10:23,3470.17,1159410,1315087968.00,3467.444\", \"2022-02-18 10:24,3469.06,1164921,1296628416.00,3467.388\", \"2022-02-18 10:25,3467.21,1312111,1365904384.00,3465.658\", \"2022-02-18 10:26,3467.41,1316627,1489438304.00,3464.801\", \"2022-02-18 10:27,3469.11,1137054,1294857600.00,3465.608\", \"2022-02-18 10:28,3468.55,984820,1126746960.00,3465.683\", \"2022-02-18 10:29,3467.24,984769,1187426656.00,3464.875\", \"2022-02-18 10:30,3465.59,1226653,1316041136.00,3463.021\", \"2022-02-18 10:31,3465.14,1275692,1503094160.00,3462.020\", \"2022-02-18 10:32,3464.86,886382,1010112464.00,3462.192\", \"2022-02-18 10:33,3467.88,1000237,1141957968.00,3465.200\", \"2022-02-18 10:34,3466.95,761567,902775472.00,3465.237\", \"2022-02-18 10:35,3467.27,839084,1025965280.00,3466.375\", \"2022-02-18 10:36,3466.16,831863,908426752.00,3466.400\", \"2022-02-18 10:37,3465.20,817697,924201072.00,3465.974\", \"2022-02-18 10:38,3465.76,902488,956643024.00,3466.689\", \"2022-02-18 10:39,3467.58,983160,1183687360.00,3468.930\", \"2022-02-18 10:40,3466.81,703163,884872976.00,3468.875\", \"2022-02-18 10:41,3466.28,816313,978740256.00,3469.144\", \"2022-02-18 10:42,3465.32,916120,1029868688.00,3468.235\", \"2022-02-18 10:43,3464.59,888999,984288784.00,3467.768\", \"2022-02-18 10:44,3462.88,1028621,1061300144.00,3466.359\", \"2022-02-18 10:45,3463.80,847017,960444848.00,3466.713\", \"2022-02-18 10:46,3463.81,698981,897423360.00,3466.950\", \"2022-02-18 10:47,3463.87,767927,904861344.00,3467.414\", \"2022-02-18 10:48,3463.97,662095,846325952.00,3467.421\", \"2022-02-18 10:49,3466.63,833613,1082172704.00,3469.222\", \"2022-02-18 10:50,3466.55,664728,884891568.00,3469.244\", \"2022-02-18 10:51,3466.91,724344,955594464.00,3470.011\", \"2022-02-18 10:52,3467.21,703128,901594960.00,3470.682\", \"2022-02-18 10:53,3468.20,667789,877661376.00,3471.541\", \"2022-02-18 10:54,3470.00,903096,1121728672.00,3473.240\", \"2022-02-18 10:55,3469.97,651420,834970752.00,3473.299\", \"2022-02-18 10:56,3468.96,575080,742095904.00,3472.940\", \"2022-02-18 10:57,3469.07,528645,712569024.00,3473.061\", \"2022-02-18 10:58,3468.88,702150,791015408.00,3472.794\", \"2022-02-18 10:59,3467.74,584237,775064336.00,3472.066\", \"2022-02-18 11:00,3467.65,526244,645582240.00,3471.945\", \"2022-02-18 11:01,3467.90,743985,847233600.00,3471.900\", \"2022-02-18 11:02,3466.80,658715,763167584.00,3471.383\", \"2022-02-18 11:03,3466.81,742382,827930800.00,3471.017\", \"2022-02-18 11:04,3467.18,630610,738742832.00,3471.156\", \"2022-02-18 11:05,3467.96,603501,708198688.00,3471.633\", \"2022-02-18 11:06,3467.30,579549,704010464.00,3471.673\", \"2022-02-18 11:07,3467.70,741964,846976496.00,3471.662\", \"2022-02-18 11:08,3466.90,661337,817764576.00,3470.760\", \"2022-02-18 11:09,3466.97,629082,843900128.00,3470.637\", \"2022-02-18 11:10,3467.03,625408,775044032.00,3470.951\", \"2022-02-18 11:11,3468.88,838745,970146656.00,3471.912\", \"2022-02-18 11:12,3469.19,647532,724215584.00,3472.378\", \"2022-02-18 11:13,3468.49,684698,807125504.00,3472.194\", \"2022-02-18 11:14,3467.99,883173,946617504.00,3471.969\", \"2022-02-18 11:15,3467.84,1051765,982696352.00,3471.320\", \"2022-02-18 11:16,3467.19,228771,224715192.00,3471.246\"]\n" +
            "\t}, {\n" +
            "\t\t\"name\": \"深证成指\",\n" +
            "\t\t\"code\": \"399001\",\n" +
            "\t\t\"price\": \"13379.02\",\n" +
            "\t\t\"openningprice\": \"13334.90\",\n" +
            "\t\t\"lastclosingprice\": 13422.9,\n" +
            "\t\t\"trendnum\": 241,\n" +
            "\t\t\"updatetime\": 1645154116,\n" +
            "\t\t\"trend\": [\"2022-02-18 09:30,13334.90,4807807,5711168000.00,13345.398\", \"2022-02-18 09:31,13330.10,13436780,16682383104.00,13330.935\", \"2022-02-18 09:32,13361.56,7700703,9752557568.00,13368.623\", \"2022-02-18 09:33,13364.44,6496400,8289474560.00,13377.583\", \"2022-02-18 09:34,13364.95,5843747,7236175104.00,13380.251\", \"2022-02-18 09:35,13360.18,5475090,6727307264.00,13378.150\", \"2022-02-18 09:36,13368.13,5141438,6571988224.00,13370.926\", \"2022-02-18 09:37,13376.82,4277794,5593322496.00,13377.205\", \"2022-02-18 09:38,13392.25,4139596,5373074688.00,13393.397\", \"2022-02-18 09:39,13386.62,4184989,5208327424.00,13380.499\", \"2022-02-18 09:40,13377.58,4206152,5122120192.00,13372.245\", \"2022-02-18 09:41,13364.84,4571312,5798220288.00,13369.106\", \"2022-02-18 09:42,13359.36,3904365,4948353280.00,13355.532\", \"2022-02-18 09:43,13352.45,3881138,5005895168.00,13337.776\", \"2022-02-18 09:44,13350.26,3567278,4617877760.00,13334.858\", \"2022-02-18 09:45,13339.79,3398194,4455506944.00,13336.577\", \"2022-02-18 09:46,13346.33,3555989,4760561152.00,13338.154\", \"2022-02-18 09:47,13347.33,2933039,3638748208.00,13345.366\", \"2022-02-18 09:48,13364.97,3000764,3694978960.00,13365.867\", \"2022-02-18 09:49,13366.23,3114113,3908883664.00,13378.797\", \"2022-02-18 09:50,13369.75,2773870,3366200064.00,13386.706\", \"2022-02-18 09:51,13360.97,3396576,4015772160.00,13393.008\", \"2022-02-18 09:52,13355.58,2968517,3609172880.00,13397.469\", \"2022-02-18 09:53,13362.74,2503594,3048001616.00,13401.614\", \"2022-02-18 09:54,13377.68,2507509,3207258096.00,13413.302\", \"2022-02-18 09:55,13392.38,2638683,3323562736.00,13421.010\", \"2022-02-18 09:56,13406.30,2785857,3301293648.00,13431.933\", \"2022-02-18 09:57,13399.61,2485245,3252857648.00,13428.869\", \"2022-02-18 09:58,13403.25,2396411,2965305184.00,13426.438\", \"2022-02-18 09:59,13399.94,2343183,2952286432.00,13420.559\", \"2022-02-18 10:00,13389.38,2248413,2853197184.00,13414.439\", \"2022-02-18 10:01,13383.11,2640388,3410406576.00,13400.900\", \"2022-02-18 10:02,13384.82,2487581,3091799584.00,13405.404\", \"2022-02-18 10:03,13381.30,1965854,2520382608.00,13402.230\", \"2022-02-18 10:04,13380.12,1864387,2299401120.00,13400.733\", \"2022-02-18 10:05,13401.46,1970351,2526592352.00,13406.287\", \"2022-02-18 10:06,13402.76,1739561,2172615952.00,13414.942\", \"2022-02-18 10:07,13397.93,1621098,2124161040.00,13416.186\", \"2022-02-18 10:08,13400.61,1575701,2003892192.00,13416.933\", \"2022-02-18 10:09,13400.29,1535339,1978983632.00,13417.615\", \"2022-02-18 10:10,13403.55,1507465,2018726480.00,13418.158\", \"2022-02-18 10:11,13418.52,1832568,2345713520.00,13425.205\", \"2022-02-18 10:12,13415.93,1847919,2471877376.00,13432.016\", \"2022-02-18 10:13,13416.96,1568472,1967903440.00,13432.043\", \"2022-02-18 10:14,13413.93,1585925,1941603536.00,13430.344\", \"2022-02-18 10:15,13405.83,1473058,1855203136.00,13425.998\", \"2022-02-18 10:16,13406.07,1525722,1811873088.00,13426.598\", \"2022-02-18 10:17,13410.92,1372038,1664235552.00,13429.245\", \"2022-02-18 10:18,13409.46,1379655,1695540848.00,13432.858\", \"2022-02-18 10:19,13404.98,1422724,1856551872.00,13431.547\", \"2022-02-18 10:20,13398.57,1500503,1907247344.00,13426.230\", \"2022-02-18 10:21,13389.30,1494476,2043278528.00,13421.689\", \"2022-02-18 10:22,13388.93,1535795,1943032672.00,13421.893\", \"2022-02-18 10:23,13392.45,1616468,2063434224.00,13427.205\", \"2022-02-18 10:24,13389.29,1763832,2256018064.00,13429.101\", \"2022-02-18 10:25,13385.98,1710522,2275298656.00,13423.251\", \"2022-02-18 10:26,13386.19,1651337,2130335536.00,13419.691\", \"2022-02-18 10:27,13391.66,1532801,2078166256.00,13420.594\", \"2022-02-18 10:28,13387.61,1376914,1895514240.00,13420.868\", \"2022-02-18 10:29,13382.78,1487141,1979903600.00,13418.734\", \"2022-02-18 10:30,13376.37,1480983,1985789376.00,13411.446\", \"2022-02-18 10:31,13376.84,1678185,2245183952.00,13406.902\", \"2022-02-18 10:32,13377.54,1347380,1680044384.00,13410.271\", \"2022-02-18 10:33,13391.91,1528027,1871149232.00,13423.014\", \"2022-02-18 10:34,13385.57,1263388,1538198256.00,13423.010\", \"2022-02-18 10:35,13392.39,1114431,1373865344.00,13428.046\", \"2022-02-18 10:36,13390.07,1080064,1354736048.00,13428.206\", \"2022-02-18 10:37,13388.59,1133931,1387482640.00,13427.122\", \"2022-02-18 10:38,13395.91,1278759,1606736016.00,13431.458\", \"2022-02-18 10:39,13401.20,1545134,1878748528.00,13442.294\", \"2022-02-18 10:40,13400.98,1176068,1565764576.00,13442.926\", \"2022-02-18 10:41,13404.01,1255339,1644352000.00,13444.910\", \"2022-02-18 10:42,13399.40,1362026,1613954832.00,13441.258\", \"2022-02-18 10:43,13396.28,1280024,1524272800.00,13438.330\", \"2022-02-18 10:44,13392.02,1218360,1477957600.00,13432.107\", \"2022-02-18 10:45,13393.99,1112632,1421147648.00,13434.038\", \"2022-02-18 10:46,13392.96,976567,1275169088.00,13436.315\", \"2022-02-18 10:47,13391.61,1009938,1340182464.00,13436.979\", \"2022-02-18 10:48,13392.62,927665,1239991440.00,13436.208\", \"2022-02-18 10:49,13402.10,1132681,1422831584.00,13443.214\", \"2022-02-18 10:50,13400.17,987563,1286752304.00,13443.469\", \"2022-02-18 10:51,13403.00,1083410,1469193664.00,13444.459\", \"2022-02-18 10:52,13404.98,1109685,1421045440.00,13447.046\", \"2022-02-18 10:53,13408.70,934624,1229263424.00,13449.570\", \"2022-02-18 10:54,13415.65,1132955,1472059168.00,13456.742\", \"2022-02-18 10:55,13414.32,1039625,1253485664.00,13458.133\", \"2022-02-18 10:56,13414.18,1006368,1237714608.00,13457.422\", \"2022-02-18 10:57,13411.30,926242,1205619504.00,13456.458\", \"2022-02-18 10:58,13409.13,891032,1096963232.00,13456.245\", \"2022-02-18 10:59,13404.39,859252,1052824432.00,13452.915\", \"2022-02-18 11:00,13404.52,810972,1023433120.00,13451.768\", \"2022-02-18 11:01,13401.44,861341,1062266960.00,13451.640\", \"2022-02-18 11:02,13395.31,920393,1144775904.00,13449.680\", \"2022-02-18 11:03,13394.42,841285,1111555232.00,13448.042\", \"2022-02-18 11:04,13396.79,769017,981858944.00,13450.166\", \"2022-02-18 11:05,13398.01,843838,1111812176.00,13452.904\", \"2022-02-18 11:06,13397.04,781464,1022552224.00,13454.058\", \"2022-02-18 11:07,13395.04,795911,1099380544.00,13453.427\", \"2022-02-18 11:08,13391.96,858407,1175137664.00,13449.493\", \"2022-02-18 11:09,13389.73,821033,1095781856.00,13446.992\", \"2022-02-18 11:10,13390.52,832874,1019483408.00,13448.875\", \"2022-02-18 11:11,13393.32,942108,1163148992.00,13451.950\", \"2022-02-18 11:12,13392.97,844904,1090956912.00,13453.920\", \"2022-02-18 11:13,13387.27,819490,1103639872.00,13452.414\", \"2022-02-18 11:14,13383.22,783167,1109231696.00,13450.760\", \"2022-02-18 11:15,13379.10,931901,1233122320.00,13447.373\", \"2022-02-18 11:16,13379.02,268272,319517216.00,13446.842\"]\n" +
            "\t}]\n" +
            "}";
    // BigDecimal 保留2位小数处理
    public static BigDecimal keep2Num(String num){
        BigDecimal bigNum = new BigDecimal(num);
        bigNum = bigNum.setScale(2,BigDecimal.ROUND_HALF_UP);
        return bigNum;
    }
}
